﻿using System;
using System.Collections.Generic;
using System.Text;
using SQLite;

namespace MasterDetailTemplate.Models
{
    [SQLite.Table("diet")]
    public class Diet {
        /*蛋白质	  脂肪	  糖类	       纤维素	维生素	碳水化合物
         Protein, fat, sugars, cellulose, vitamin, carbohydrate*/
        /// <summary>
        /// id
        /// </summary>
        [PrimaryKey,SQLite.Column("Id")]
        public int Id { set; get; }

        [SQLite.Column("name")]
        public string Name { set; get; }

        [SQLite.Column("picture")]
        public string PictureURL { set; get; }

        [SQLite.Column("describe")]
        public string Describe { set; get; }

        //营养物质
        /// <summary>
        /// 蛋白质
        /// </summary>
        [SQLite.Column("protein")]
        public double Protein { set; get; }

        [SQLite.Column("fat")]
        public double Fat { set; get; }

        [SQLite.Column("sugars")]
        public double Sugars { set; get; }

        [SQLite.Column("cellulose")]
        public double Cellulose { set; get; }

        [SQLite.Column("vitamin")]
        public double Vitamin { set; get; }

        [SQLite.Column("carbohydrate")]
        public double Carbohydrate { set; get; }

        //口味偏好
        [SQLite.Column("spicy")]
        public double SpicyIndex { set; get; }

        [SQLite.Column("sweetness")]
        public double SweetIndex { set; get; }

        [SQLite.Column("tag")]
        public int Tag { get; set; }

        [SQLite.Column("kind")]
        public int Kind { set; get; }
    }

    public static class DietConstant {
        public const int BreakfastTag = 1;
        public const int NotBreakfastTag = 0;
    }
}
